<?php
namespace Common\Model;
use Think\Model\RelationModel;
class ContentCatsModel extends RelationModel{
    
    protected $_link = array(
        'catname'=>array(
        	'mapping_type'=>self::BELONGS_TO,
        	'class_name' => 'Cats',
        	'foreign_key' => 'cid',
        	'as_fields' => 'cat_name'
        )
    );
    
}